// 请求方法
import { getAction, deleteAction, putAction, postAction, httpAction} from '@api/manage'


// 专家注册信息，申请成为专家
const appLication = (params) => getAction("/expert/busExpertManagement/application",params)
//专家注册信息-添加
const addexpert = (params) => postAction("/expert/busExpertManagement/add",params)
// 指派专家下拉
const busConsultassign = (params) => getAction("/bconsult/busConsult/assign",params)
// 通过咨询
const busConsultpass = (params) => getAction("/bconsult/busConsult/pass",params)
// 撤销
const busConsultbounced = (params) => getAction("/bconsult/busConsult/bounced",params)
//头像路径方法
const imgpath =  (params) =>{ return process.env.VUE_APP_API_BASE_URL + '/' + params}
// 专家注册信息编辑
const busExpertManagementedit = (params) => postAction("/expert/busExpertManagement/edit",params)
// 意见反馈类型  
const busOpinionPcType = (params ) => getAction("/opinionPc/busOpinionPc/getType",params)
// 专家注册信息PC-结束
const busExpertManagementend = (params) => getAction("/expert/busExpertManagement/end",params)
//专家管理-结束咨询
const busConsultend = (params) => getAction("/bconsult/busConsult/generate",params)
//订单状态变更  
const  paymentOrderInfoedit = (params) => postAction("/paymentOrderInfo/paymentOrderInfo/edit",params)
//查询支付相关订单
const busConsultinQuire = (params) => getAction("/bconsult/busConsult/inQuire",params)
//接收人下拉框数据
const sysUserList = (params) => getAction("/sys/user/sysUserList",params)
//生成订单后结束咨询 
const generateEnd = (params) => getAction("/bconsult/busConsult/generateEnd",params)
// 功能管理启用禁用接口
const busFeatureManagement = (params) => getAction("/management/busFeatureManagement/change",params)
//签到管理列表接口
const  busSignRulelist = (params) => getAction("/signrule/busSignRule/list",params)
//签到管理编辑接口  /signrule/busSignRule/edit
const  busSignRuleedit = (params) => putAction("/signrule/busSignRule/edit",params)
//签到管理添加接口  /signrule/busSignRule/edit
const  busSignRuleadd = (params) => postAction("/signrule/busSignRule/add",params)
//手机号下拉列表
const  phoneListAPI = (params) => getAction("/sys/user/sysUserPhoneList",params)
//手机号下拉列表
const  violationListAPI = (params) => getAction("/violationRecords/violationRecords/violationTypeDropdownBox",params)
// 专家入驻信息-入驻申请详情
const auditById = (params) => getAction("/expert/busExpertManagement/auditById",params)
// 专家入驻信息-入驻申请处理
const auditDispose = (params) => getAction("/expert/busExpertManagement/auditDispose",params)
const paymentOrderInfoad = (params) => postAction("/paymentOrderInfo/paymentOrderInfo/add",params)
//导出接口方法
export {
    appLication,
    addexpert,
    busConsultassign,
    busConsultpass,
    busConsultbounced,
    imgpath,
    busExpertManagementedit,
    busOpinionPcType,
    busExpertManagementend,
    busConsultend,
    paymentOrderInfoedit,
    busConsultinQuire,
    sysUserList,
    generateEnd,
    busFeatureManagement,
    busSignRulelist,
    busSignRuleedit,
    phoneListAPI,
    violationListAPI,
    auditById,
    auditDispose,
    paymentOrderInfoad,
    busSignRuleadd
}